#
# Makefile for Linux version of ghpsdr3
# modified by Dave Larsen, KV0S
#
CC            = g++
CFLAGS        = -Wall
LIBS          = -lpthread -lportaudio -lperseus-sdr -lboost_program_options -lsamplerate
TARGET 	=	./perseus_server
SOURCES = 	bandscope.c  \
		listener.c \
		receiver.c \
		util.c \
		client.c \
		perseus_audio.c \
		server.c 

OBJECTS =       bandscope.o  \
                listener.o \
                receiver.o \
                util.o \
                client.o \
		perseus_audio.o \
                server.o 

.c.o:
	$(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<"


all: Makefile $(TARGET)

$(TARGET):  $(OBJECTS)
	$(CC) -o $(TARGET) $(OBJECTS) $(LIBS) 

clean:
	-rm -rf $(TARGET)
	-rm -rf $(OBJECTS)
